package com.jn.mvp.entity;

import java.util.List;

public class News {

   private int code;
   private Object msg;
   private DataDTO data;

   public int getCode() {
      return code;
   }

   public void setCode(int code) {
      this.code = code;
   }

   public Object getMsg() {
      return msg;
   }

   public void setMsg(Object msg) {
      this.msg = msg;
   }

   public DataDTO getData() {
      return data;
   }

   public void setData(DataDTO data) {
      this.data = data;
   }

   public static class DataDTO {
      private String date;
      private List<String> news;
      private String weiyu;
      private String head_image;

      public String getDate() {
         return date;
      }

      public void setDate(String date) {
         this.date = date;
      }

      public List<String> getNews() {
         return news;
      }

      public void setNews(List<String> news) {
         this.news = news;
      }

      public String getWeiyu() {
         return weiyu;
      }

      public void setWeiyu(String weiyu) {
         this.weiyu = weiyu;
      }

      public String getHead_image() {
         return head_image;
      }

      public void setHead_image(String head_image) {
         this.head_image = head_image;
      }

      @Override
      public String toString() {
         return "DataDTO{" +
                 "date='" + date + '\'' +
                 ", news=" + news +
                 ", weiyu='" + weiyu + '\'' +
                 ", head_image='" + head_image + '\'' +
                 '}';
      }
   }

   @Override
   public String toString() {
      return "News{" +
              "code=" + code +
              ", msg=" + msg +
              ", data=" + data +
              '}';
   }
}
